home *** CD-ROM | disk | FTP | other *** search
- SPELLER
-
- AN ASCII FILE SPELL CHECKER
-
- by
-
- John Leeson
-
-
- This spell checker works on ASCII files to create a list of misspelled or
- possibly misspelled words.
-
- The program is activated by the command
-
- SPELLER [filespec]
-
- where filespec is the name of the text file to be spell checked. If omitted
- then the program will ask for the name. The name may include a drive specifier
- and/or a path in accordance with DOS syntax for a filespec. The drive
- containing the text file must not be write protected since the output file
- containing the list of possible misspelled words will be written to the same
- drive as the source file is located on. Also, the output file will have the
- same name as the source file except it will have an extension of 'MIS'. If the
- source file had an extension then the extension will be replaced by the '.MIS'
- otherwise the '.MIS' will be appended to the name. The spelling list must be in
- the same directory and drive as the program 'SPELLER.COM' and this directory
- must be either the default directory or else the DOS 'PATH' must be set up to
- include the drive and path to the directory containing 'SPELLER.COM and
- 'SPELLER.MIS'.
-
- When the program completes, it will have generated a file called 'name.MIS' on
- your document disk. This file can be used to check the spelling of the possibly
- misspelled words, hunt for and correct the words which are misspelled, and then
- for updating the spelling check dictionary. I use PC-Write (C) to edit my
- document then copy in the file 'name.MIS' at the start of the document. Then I
- use the words in the list to mark them and the find/replace function to find
- the marked word for correction.
-
- After editing the file 'name.MIS' to remove the words which you don't want to
- add to the spelling list, then this file can be moved to the directory
- containing the SPELLER.LIS file and SPELLUPD.COM file for updating the spelling
- list. Run the program SPELLUPD which adds the words in the file 'name.MIS' to
- SPELLER.LIS. This is accomplished in SPELLUPD by deleting file 'SPELLER.LI$'
- and renaming the 'SPELLER.LIS' file to 'SPELLER.LI$', then a new 'SPELLER.LIS'
- file is created by adding the new words. With all of this file manipulating it
- is a very good idea to keep a separate backup copy of the spelling list file in
- case something goes wrong.
-
- The dictionary has about 4800 words in it at the present time. Contractions
- are included in the spelling checker and in the dictionary. In the event that
- the dictionary file gets messed up with duplicate words or words which are out
- of order then the spell check will find words which it thinks are not in the
- dictionary. For this reason there is another little program on the disk which
- is called SPELLCHK.COM. This program just goes through the dictionary looking
- for words which are not in alphabetical order and counting the dictionary words
- as it goes. It prints the pairs of words to the screen which are not in the
- correct sequence. When it gets done you can use your favorite line editor to
- edit the dictionary file to eliminate the out of place or duplicate words.
-
- If you have been using the BASIC program by Andy Wildenberg called PC-SPELL
- version 1.15 (or later?) and want to keep using the list of words which you
- have already established as your dictionary then that can be done. The list
- must be renamed to 'SPELLER.LIS' for SPELLER to use it. It is recommended that
- you use SPELLER to spell check your PC-SPELL spelling list and then use
- SPELLUPD to update the SPELLER.LIS file. In this way you will get the combined
- total of both spelling lists and also get rid of any duplicate or out of place
- words in the PC-SPELL dictionary file which PC-SPELL sometimes adds. You might
- also want to check the spelling of the word list you get out of the spell check
- of the PC-SPELL dictionary since in the copy I downloaded a long time ago there
- were a lot of misspelled words in the list. It takes a lot of time to check
- this list against a dictionary but it is worthwhile to get an accurate spelling
- checker.
-
- Send comments or whatever to me at the below address if you wish to. The
- program is written in PASCAL and compiled with TURBO 3.0 by Borland
- International. The source code includes the use of some of the special
- extensions available in TURBO 3.0.
-
- John Leeson
- 466 Merritt Rd.
- Central City, Ia. 52214
- (319) 854-7419
-
-
- NOTE: PC-Write is (C) Copyright 1983 by Bob Wallace, Quicksoft.